#include<iostream>
using namespace std;
#include<vector>
#include<string>
#include"hash.h"

#include"unordered_map.h"

void test()
{
	Wang::unordered_map<int, int> map;
	for (int i = 1; i < 6; ++i)
	{
		map.insert({ i,i });
	}
	map.insert({ 13,13 });
	map[3] = 111;
	auto it = map.begin();
	while (it != map.end())
	{
		cout << it->first << "->" << it->second << endl;
		it->second += 1;
		++it;
	}
	cout << endl;

	const Wang::unordered_map<int, int>& map1 = map;
	auto it1 = map1.begin();
	while (it1 != map1.end())
	{
		cout << it1->first << "->" << it1->second << endl;
		//it1->second += 1;
		++it1;
	}
}

int main()
{
	//Wang::test02();
	test();
	return 0;
}